Moved javascript to header