Refactor Browser-sync reload funtionality
Test code