Javascript loan calculator learning example