made changes toward javascript loading