Separated the js code to make it more managable, starting work on /song.