minor js optimizations