place templates in global folder
fixes jquery implementation
use tabs instead of spaces