JS adaptations