Revert "Use proper jQuery functionalities, per @gibson042 + more reduction"

This reverts commit 45aa20e574a8681d100194a621bed22b257784da.