Rename type to javascript