Get First Two Characters Of String Javascript Methods And Functions