make sure the js is loaded