fixing JavaScript viewport size