JS

Added final functions.