optimized some jquery w/ raw javascript