GENERAL - refactoring, moved javascript client to separate module, ant refactoring -part1