Updated to not rely on jquery