moved javascript to src directory