Oh man!!! Coffeescript is so much fun!
This was my first ever .coffee attempt, it literally took me 10 minutes to install it on Ubuntu and get it working on my localhost.
get_weekday (num) ->
And it needed to be
get_weekday = (num) ->
Notice the equals sign!