create view javascript and back-end java