clean up of js formatting