changed javascript syntax sources
better javascript formatting