Align Javascript code of platform-ui to GateIn 3.5.0.Final