Moved script reference from views to layout