update model, add public js directory