moved blink function to javascript folder