removed config file check from js, now in php