started javascript implementations and added more java code