add javascript configuration and json support