Remove call to beforePhase to check for js.GlobalScope

This eliminates all calls to beforePhase and will allow to compile
the scalalib with the scalajslib on the classpath