live-reloading for functions and variable declarations