Remove need of $.type() function
Remove unused dependance on jQuery