Added factorial and changed interpolation docs
Made the code jshint-friendly