CI init, newad js and php validate