Simple Java Script Frame work to build classes