More JS tweaks

Fixed formatting a little and one output; movie sorting function still
appears to be broken though.