Fix errors in code

* Plugin is not working in my safari 7.0.5 until I change `(function($) {` to `$(document).ready(`.
* In blocks of code where factor is generating and setting styles for `$scrollBottom` used wrong `$scrollTop` variable.