Improved Code, Adding JavaScript.