I carefully re read through my code and found I had some function before page ready action. Thanks for the tip