Strange JS behaviour fixed.