Added the create modifier functions to javascript