Removed local version of OpenLayers.js and cloned project as submodule instead. Some files were missing.