A tiny bit of JS optimization