Basicly main.js but php