Made requires work with browserify

Browserify doesn't understand variables in require() arguments. 
I didnt realise this after the redactor of my first pull request.