Moved javascript to separate folder