jQuery noconflict
arrange js functions in better order