Remove dependancy on jquery