moved js files into js dir