Clean up whitespace in various javascript files

Change-Id: I8d144bac9745a458ed6bd4f275cbcea412fc6f5c