added js for focus