helper method for enabling vertex attrib array
return return value of useProgram
use correct value for attribute/uniform locations (integers don't work)
demo