Improved JavaScript functionality
Uses one declaration or parameters
Parameters are set globally no scope involved
Code comments improved
Function returns improved
Updated styling