Added js preview build feature. Removed unused controller actions.