created partial implementation, and moved js files to view dir