Add performace test script
Fix javascript bug