added php files for functions config
updated js file