Fixed the plugin to stage settings properly.

Thanks to sebastien's help: https://github.com/scala-js/scala-js/pull/749


Signed-off-by: Ben Jackman <ben@jackman.biz>