Cleaned js for next example