Moved javascript to own file