JS lint formatting (still need to move all the functions around)