Adding preread materials for JavaScript