adding JSON config support for javascript code inside