ExecJs to evaluate javascript content
more parsing logic