Fixed spelling error, fixed js