Update multiLine.js

No need to modify function prototype.

using regular expressions instead