Don't load js when not needed