Fixed bug in wordBreak. Added code so it would properly register with AMD
or commonjs