Aded javascript as a type