updating resize handler to use html,body instead of window so it works on ff