fix javascript code in index.jade