modified js require snippet, added insert mode mapping to go to the end of the line