Add ditto javascript