JS Purpose Fixes