Fixing issue where JSCONFIG could be overridden

This prevents JSCONFIG being set on the client side and overridden later and also allows cleared data to become undefined after being set