add last line of js