added methods in angular module to run scripts