added hooks for js files