Added ability to call JS after data is loaded