Add require snippet for JS.