Improved JS app config