add an AppDispatcher for view inline js
placed app js to related view directory