Finished JavaScript unit