making viewport size into require module