added script registration and changed jQuery variable from $ to jQuery (no conflict solution)