Moved javascript to javascript's place