add cast js