Correct config file's name. Simplify javascript code.