Pull request for CSC 517 OSS Project E1401

This is obtrusive javascript. Please extract it into a separate `.js` file.