made all JS must be self contained,includeing jquery