CSS & JS changes

Implemented changes proposed in pull request to change CSS position
attribute & refactor jQuery to toggle the overlay actions.
Also added $(document).ready() to app.js.