Spearal JavaScript