loader js genericised for deployment
bugfixes for errors encountered on goal list page