Applied JS styleguide
Added extra comments
Shortened the comment about keydown
Added isDisplayed jQuery method
Removed "compute" from the comments
Applied JS styleguide