Javascript stylistic fixes / clean-up