Improvements to Javascript