Basic main.js with mouse centring