fix serve static files
minor improvements
improve js