Replacing double quotes with single quotes
Adding missing semicolons, removing unnecessary semicolons, adding missing brackets to ifs, caching lengths in for loops
Adding missing semicolons, adding missing radix values for parseInt, using type comparisons in ifs
Merged pull-request from sabarasaba-Code-Refactoring and resolved conflicts in page.js.