added fire ready function to .js file