fixade bugg i js