implementation js