Finished add view javascript.