Allow js style changes at runtime

Allow js style changes at runtime - fixes #850