Moved client javascript to functional directories