XSS injection into javascript string

Is XSS attack possible in this scenario? As you can see I am able to inject JS by not properly escaped backslash.

 <script type="text/javascript">(function () { random.random(); random.random.random( 'injected\'-alert()-//, 'fulltext-search'); })(); </script> 

in example above I am trying to execute alert box with my injected JS, however I am making some mistake.

< > ; characters cannot be used.