deleted empty test, moved javascript to top of view file