Cleaning up unused javascript