removed batter code from js