Added get_screen_size method to general.js