init javascript bones