Moved shader and program functions into separate javascript file.