updated js and added settings