slight JS changes