fixing capitalization issues and moving js to the end of the page