Fixed the order script tag was declared
Fixed ready function issue