Javascript prototype util to make a webpage responsive