moved javascript to bottom of file
Update method ignores controls