added a package json
added start server script, fixed a bug when app is offline