Removing last bit of JS