Is it necessary to use javascript to append rather than php since this is a php file? Would be clearer not to mixed php and javascrpt.