change the way the require clause is inserted

If the line is empty, it will insert ```var x = require('x');```.

If the line is not empty, it will just insert ```require('x')```