Replace all inner classes names in JS with pattern "Outer+Inner"

This patch should fix #352 and #414