Updating documentation with precheck
Added precheck example
Added example JS for running