Modify intro as spec - fix js function