initialize php js doc