Use an older #version declaration for all shaders, to make them compilable with older hardware and other OSes. Remove attribute location hardcoding and use getAttribute to retrieve attribute location.