moved javascript 'application' back to body