Fixed typo in initialization of throttle function and added watcher for viewport resize and rotate