remove jQuery dependency & add tests