Fix javascript formmating errors