added constructor js