Moved javascript around.