added .js views and ajax funxtionality.