updated js config
refactoring