Resolved 'top' error from init.js