move jquery code to the bhaawp file