checkin the basic file for JS and Pure Java
added the aglorithm directory