moved dashboard js script to index