split the javascript into two files: one for jquery version and one for vanilla version