clean up javascript more