Moved caption to view from JS