passing from jQuery to JavaScript without dependencies.