Refactored JS file, added comments
Edited minimum height for page resizing