Moved js diff into its own file