fixed UMD preface

Plugin doesn't work when used as a RequireJS module.

Fixed according to UMD https://github.com/umdjs/umd .