Removed bloat from the main JavaScript code wrapper.