fixing JavaScript view-port size