Search engine being built in JavaScript