Solved config for both js and php