Update build script with brick version and localforage