getting t to work without jquery