merge with JS