Added js layer implementation