change base url to '' for easy deploying single page app.
add declaration for variables in storage.