Fixed some js behaviour issues